/******************************************
 * listbox.h - header for the listbox class
 * for GUIZ
 *
 * DOESN'T WORK RIGHT NOW - DON'T USE
 *
 * Author: Jeremy Zito
 * Date:   1/10/07
 ******************************************/
 
#ifndef LISTBOX_H
#define LISTBOX_H

#include <fstream>
#include <vector>
#include <map>
#include <string>

using namespace std;

class listbox{
      
      
      public:
             //position/size
             int x, y;
             int w, h;
			 //textbox color
			 int rgb[3];

			 //index of the selected item
			 int selected_item;

			 //list box items
             vector<string> items_text;

			 listbox()
			 {
				selected_item = 0;
			 }

			 int add_item(string text)
			 {				
				 items_text.push_back(text);
				 return (int)items_text.size()-1;
			 }

			 int get_selected()
			 {
				 return selected_item;
			 }

			 void set_selected(int item_num)
			 {
				 selected_item = item_num;
			 }
              
};


#endif  /* LISTBOX_H */